from rest_framework import serializers
from .models import *
from .views import *


# 菜单序列化器
class MenuSer(serializers.ModelSerializer):
    class Meta:
        model = MenuModel
        fields = "__all__"


# 轮播图序列化器
class SlideshowSer(serializers.ModelSerializer):
    class Meta:
        model = SlideshowModel
        fields = "__all__"


# 菜单角色序列化器
class MenuRoleSer(serializers.ModelSerializer):
    class Meta:
        model = MenuRoleModel
        fields = "__all__"


# 菜单子类序列化器
class MenuSubClassSer(serializers.ModelSerializer):
    class Meta:
        model = MenuSubClassModel
        fields = "__all__"